package com.ysx.member.entity;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class MemberLoginReq {

    @NotBlank(message = "[手机号]不能为空")//手机号注册不能为空框架
    @Pattern(regexp = "^((13[0-9])|(14[5,7])|(15[0-9])|(17[0-9])|(18[0-9]))\\d{8}$", message = "手机号格式不正确")
    private String mobile;

    @NotBlank(message = "[短信验证码]不能为空")//手机号注册不能为空框架
    private String code;
}
